//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.efounder.form;

import com.efounder.builder.base.data.EFDataSet;
import com.efounder.builder.base.data.EFRowSet;
import com.efounder.bz.flow.drive.FlowDriveDataObject;
import com.efounder.bz.flow.drive.NodeTaskDataSet;
import com.efounder.object.ChildLinkParentKey;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class EFFormDataModel extends EFRowSet implements Serializable, ChildLinkParentKey, FlowDriveDataObject {
    static final long serialVersionUID = 1L;
    protected EFDataSet billDataSet = null;
    protected EFDataSet[] itemDataSets = null;
    protected EFDataSet[] partDataSets = null;
    public static final int _FORM_STATSU_VIEW_ = 0;
    public static final int _FORM_EDIT_STATUS_ = 0;
    public static final int _FORM_EDIT_CREATE_ = 1;
    public static final int _FORM_EDIT_CHANGE_ = 2;
    public static final int _FORM_EDIT_LOCK_ = 4;
    protected int formEditStatus = 0;
    protected Map billFormatDataSetMap = null;
    protected EFDataSet BillTempDictDS = null;

    public EFFormDataModel() {
    }

    public static EFFormDataModel getInstance() {
        EFFormDataModel formModel = new EFFormDataModel();
        return formModel;
    }

    public EFDataSet getBillDataSet() {
        return this.billDataSet;
    }

    public void setBillDataSet(EFDataSet billDataSet) {
        this.setDataSet(billDataSet.getTableName(), billDataSet);
        this.billDataSet = billDataSet;
    }

    public EFDataSet[] getItemDataSets() {
        return this.itemDataSets;
    }

    public void setItemDataSets(EFDataSet[] itemDataSets) {
        this.itemDataSets = itemDataSets;
    }

    public EFDataSet[] getPartDataSets() {
        return this.partDataSets;
    }

    public void setPartDataSets(EFDataSet[] partDataSets) {
        this.partDataSets = partDataSets;
    }

    public EFRowSet getBillData(int row) {
        return this.billDataSet == null?null:this.billDataSet.getRowSet(row);
    }

    public int getFormEditStatus() {
        return this.formEditStatus;
    }

    public String getBIZ_DJBH() {
        return this.getString("BIZ_DJBH", "");
    }

    public String getBIZ_DATE() {
        return this.getString("BIZ_DATE", "");
    }

    public String getBIZ_GUID() {
        return this.getString("BIZ_GUID", "");
    }

    public String getBIZ_UNIT() {
        return this.getString("BIZ_UNIT", "");
    }

    public String getBIZ_MDL() {
        return this.getString("BIZ_MDL", "");
    }

    public String getMDL_ID() {
        return this.getBIZ_MDL();
    }

    public void setFormEditStatus(int status) {
        this.formEditStatus = status;
    }

    public void setBIZ_DJBH(String BIZ_DJBH) {
        this.putString("BIZ_DJBH", BIZ_DJBH);
    }

    public void setBIZ_GUID(String BIZ_GUID) {
        this.putString("BIZ_GUID", BIZ_GUID);
    }

    public void setBIZ_DATE(String BIZ_DATE) {
        this.putString("BIZ_DATE", BIZ_DATE);
    }

    public void setBIZ_UNIT(String BIZ_UNIT) {
        this.putString("BIZ_UNIT", BIZ_UNIT);
    }

    public void setBIZ_MDL(String BIZ_MDL) {
        this.putString("BIZ_MDL", BIZ_MDL);
    }

    public void setFormCreateStatus() {
        this.setFormEditStatus(1);
    }

    public void setFormChangeStatus() {
        this.setFormEditStatus(2);
    }

    public void setFormLockStatus() {
        this.setFormEditStatus(4);
    }

    public void setKeepAccoutObject(Object kai) {
        this.putObject("KAIINFO", kai);
    }

    public Object getKeepAccountObject() {
        return this.getObject("KAIINFO", null);
    }

    public String getDataObjectGUID() {
        return this.getBIZ_GUID();
    }

    public String getDataObjectBIZ_UNIT() {
        return this.getBIZ_UNIT();
    }

    public String getDataObjectBIZ_DATE() {
        return this.getBIZ_DATE();
    }

    public String getDataObjectBIZ_DJBH() {
        return this.getBIZ_DJBH();
    }

    public String getFLOW_ID() {
        return this.getString("FLOW_ID", null);
    }

    public void setFLOW_ID(String flow_id) {
        this.putString("FLOW_ID", flow_id);
    }

    public String getNODE_ID() {
        return this.getString("NODE_ID", null);
    }

    public void setNODE_ID(String node_id) {
        this.putString("NODE_ID", node_id);
    }

    public NodeTaskDataSet getNodeTaskDataSet() {
        return null;
    }

    public void setNodeTaskDataSet(NodeTaskDataSet ntd) {
    }

    public String getEAIServer() {
        return "";
    }

    public Map getBillFormatDataSetMap() {
        if(this.billFormatDataSetMap == null) {
            this.billFormatDataSetMap = new HashMap();
        }

        return this.billFormatDataSetMap;
    }

    public void setBillFormatDataSetMap(Map billFormatMap) {
        this.billFormatDataSetMap = billFormatMap;
    }

    public EFDataSet getBillTempDictDS() {
        if(this.BillTempDictDS == null) {
            this.BillTempDictDS = new EFDataSet();
        }

        return this.BillTempDictDS;
    }

    public void setBillTempDictDS(EFDataSet billTempDictDS) {
        this.BillTempDictDS = billTempDictDS;
    }
}
